/**  
* <p>Title: ProcessInstanceDiagramLayoutResource.java</p>  
* <p>Description: </p>  
* <p>Copyright: Copyright (c) 2017</p>  
* <p>Company: http://www.richfit.com/</p>  
* @author Administrator
* @date 2019年8月2日  
* @version 1.0  
*/  
package com.skivingcloud.workflow.controller;

import org.activiti.rest.diagram.services.BaseProcessDefinitionDiagramLayoutResource;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.fasterxml.jackson.databind.node.ObjectNode;

/**  
* <p>Title: ProcessInstanceDiagramLayoutResource</p>  
* <p>Description: </p>  
* @author Administrator  
* @date 2019年8月2日  
*/
@RestController
public class ProcessInstanceDiagramLayoutResource extends BaseProcessDefinitionDiagramLayoutResource {
	@RequestMapping(value="/process-instance/{processInstanceId}/diagram-layout", method = RequestMethod.GET, produces = "application/json")
	  public ObjectNode getDiagram(@PathVariable String processInstanceId) {
	    return getDiagramNode(processInstanceId, null);
	  }
}
